<!--# layout("/common/layout.html",{"jsBase":"/js/cms/medicalCare/"}){ -->

<form class="layui-form " id="addForm" AUTOCOMPLETE="OFF">
    <!--# include("/cms/common/basic.html",{"basic":essentialInformation}){} -->
    <fieldset class="layui-elem-field">
        <legend>健康体检</legend>
        <div class="layui-row">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">定点医疗机构<span style="color: red">*</span></label>
                    <div class="layui-input-inline">
                        <layui:simpleDictSelect style='layui-input-inline' type="medicalInstitutionType"
                                                id="medicalInstitution" name="medicalInstitution"
                                                layVerify="required"/>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">体检类别<span style="color: red">*</span></label>
                    <div class="layui-input-inline">
                        <input type="text" id="medicalCategory" name="medicalCategory" value="${medicalCategory}" readonly="true" lay-verify="required" class="layui-input input-readonly">
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">体检时间<span style="color: red">*</span></label>
                    <div class="layui-input-inline">
                        <input type="text" id="applicationTime" name="applicationTime" lay-verify="required" class="layui-input input-date">
                        <span style="color: red">体检时间只能工作日时间</span>
                    </div>
                </div>
                <!--<div class="layui-inline">-->
                <!--<label class="layui-form-label">服务结束时间<span style="color: red">*</span></label>-->
                <!--<div class="layui-input-inline">-->
                <!--<input type="text" id="serviceEndTime" name="serviceEndTime" class="layui-input  input-readonly" readonly>-->
                <!--</div>-->
                <!--</div>-->
            </div>
        </div>
    </fieldset>
    <fieldset class="layui-elem-field">
        <legend>配偶信息</legend>
        <div class="layui-row">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">配偶姓名<span style="color: red">*</span></label>
                    <div class="layui-input-inline">
                        <input type="text" id="spousenName" name="spousenName" lay-verify="required" class="layui-input">
                    </div>
                </div>
                <!--<div class="layui-inline">-->
                <!--<label class="layui-form-label">证件号码<span style="color: red">*</span></label>-->
                <!--<div class="layui-input-inline">-->
                <!--<input type="text" id="spouseNumber" name="spouseNumber" lay-verify="required" class="layui-input">-->
                <!--</div>-->
                <!--</div>-->
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">工作单位<span style="color: red">*</span></label>
                    <div class="layui-input-inline">
                        <input type="text" id="spousenWork" name="spousenWork" lay-verify="required" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">性别<span style="color: red">*</span></label>
                    <div class="layui-input-inline">
                        <layui:simpleDictSelect style='layui-input-inline' type="gender"
                                                id="spousenSex" name="spousenSex"
                                                layVerify="required" lay-filter="spousenSex"/>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">联系电话<span style="color: red">*</span></label>
                    <div class="layui-input-inline">
                        <input type="text" id="spousenPhone" name="spousenPhone" lay-verify="required" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">出生年月<span style="color: red">*</span></label>
                    <div class="layui-input-inline">
                        <input type="text" id="spousenBirthday" name="spousenBirthday" lay-verify="required" class="layui-input input-date">
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">特殊情况说明(最多100汉字)</label>
                    <div class="layui-input-inline">
                        <textarea id="specialInstructions" name="specialInstructions" class="layui-textarea" style="width: 740px" maxlength="200"></textarea>
                    </div>
                </div>
            </div>
        </div>
    </fieldset>
    <fieldset class="layui-elem-field">
        <legend>材料信息</legend>
        <span style="color: red;margin-left: 30px;font-size: 18px">支持文件格式为：pdf,jpg,png,gif，单个文件大小不超过20M。带*号标识的对应资料必须上传，其它资料不作要求。上传文件内容请确保真实清晰、有效，不能有旋转。上传后请查看预览，正确无误后再申报提交。</span>
        <div class="layui-row">
            <label class="layui-form-label file-upload">身份证件<span style="color: red">*</span></label>
            <layui:attachment name="Idfile" batchFileUUID="${uuid()}" isNew="true" layVerify="required" bizType="User"/>
        </div>
        <div class="layui-row">
            <label class="layui-form-label file-upload">结婚证件</label>
            <layui:attachment name="otherMaterials" batchFileUUID="${uuid()}" isNew="true" bizType="User"/>
        </div>
    </fieldset>
    <layui:personnelsubmitButtons id="addButton"/>
</form>
<!--#} -->
<script>
    layui.use(['add'], function () {
        var medicalCareAdd = layui.add
        medicalCareAdd.init();
    });

    //    layui.use('laydate', function(){
    //        var laydate = layui.laydate;
    //        laydate.render({
    //            elem: '#applicationTime'
    //            ,done: function(value, date){
    //                var time=$("#applicationTime").val();
    //                $("#serviceEndTime").val(Number(time.split("-")[0])+5+"-"+time.split("-")[1]+"-"+time.split("-")[2]);
    //            }
    //        });
    //    });

    var myDate = new Date();
    var year = myDate.getFullYear();
    layui.use('laydate', function () {
        var laydate = layui.laydate;
        var endDate = laydate.render({
            elem: '#applicationTime',//选择器结束时间
            type: 'date',
            min: year + '-12-01',//设置min默认最小值
            max: year + '-12-31'
        });
    });


</script>
